﻿@model BuyThePeople.Models.UserForJointPurchaseData

@foreach(var item in Model.BidList){
				<div id="gonggu@(item.Value.GoodsSeq)" class="gonggurow">
                <!-------------------내가 참여한 진행중인 공동구매 리스트----------->
                    @Html.HiddenFor(GoodsSeq => item.Value.GoodsSeq)                    
					<div class="gonggucol" style="width:140px;border-right: 1px solid #e8e8e8;">					
						<div  style="display: table-cell; vertical-align: middle;">					
							<p>@(item.Key.RegDate.Value.ToString("yyyy-MM-dd"))</p>
						</div>
					</div>
					<div class="gonggucol" style="width:550px;border-right: 1px solid #e8e8e8;">
						<div style="display: table-cell; vertical-align: middle;" onclick="GoUrl('@Url.Content(BuyThePeople.ConstFactory.UrlGoodsDetail)/@item.Value.GoodsSeq')">
							<img src="@(item.Value.Image)" alt="상품이미지" >
							<span>@(item.Value.Title)</span>
							<span id="mypage_product_price">입찰가 @(item.Key.Price)원</span>
						</div>
					</div>
					<div class="gonggucol" style="width:200px;">					
						<div  style="display: table-cell; vertical-align: middle;">		
                            @if (item.Value.BidDateEnd > DateTime.Now){			
							    <p>입찰중</p>
                            }
                            else
                            {
                                <p>종료</p>
                            }
                            @switch (BuyThePeople.Composition.Utils.ConvertToType<BuyThePeople.Composition.JointPurchaseBidStausType>(item.Key.Status))
                            {
                                case BuyThePeople.Composition.JointPurchaseBidStausType.None:
                                default:
							        <button class="btn btn-mini btn-danger" type="button" disabled="disabled">상태 없음</button>
                                    break;
                                case BuyThePeople.Composition.JointPurchaseBidStausType.Bid:
                                    <button class="btn btn-mini btn-danger" type="button">입찰중</button>
                                    break;
                                case BuyThePeople.Composition.JointPurchaseBidStausType.BidComplete:
                                    <button class="btn btn-mini btn-danger" type="button" disabled="disabled">낙찰 완료</button>
                                    break;
                                case BuyThePeople.Composition.JointPurchaseBidStausType.BidFails:
                                    <button class="btn btn-mini btn-danger" type="button" disabled="disabled">낙찰 실패</button>
                                    break;
                                case BuyThePeople.Composition.JointPurchaseBidStausType.Cancel:
                                    <button class="btn btn-mini btn-danger" type="button" disabled="disabled">취소</button>
                                    break;
                            }
						</div>
					</div>					
					<div style="clear:both;">
						<hr width="100%" style="border:1px dashed #ffeac7"/>
					</div>
				<!------------------------------------------------------------------------------>
				</div>
}